import { randomNum } from "./../../../scripts/utils";

export const getShowAreaData = data => {
  // eslint-disable-next-line no-console
  console.log("参数data", data);
  let result = [
    {
      type: "概况",
      lists: [
        { label: "户数", value: 28595, unit: "户" },
        { label: "宅基地", value: 26458, unit: "亩" },
        { label: "房屋", value: 57683745, unit: "m²" },
        { label: "人均宅基地", value: 24.36, unit: "m²" }
      ]
    },
    {
      type: "批准",
      lists: [
        { label: "户数", value: 28595, unit: "户" },
        { label: "宅基地", value: 26458, unit: "亩" },
        { label: "房屋", value: 57683745, unit: "m²" },
        { label: "人均宅基地", value: 24.36, unit: "m²" }
      ]
    },
    {
      type: "登记",
      lists: [
        { label: "户数", value: 28595, unit: "户" },
        { label: "宅基地", value: 26458, unit: "亩" },
        { label: "房屋", value: 57683745, unit: "m²" },
        { label: "人均宅基地", value: 24.36, unit: "m²" }
      ]
    },
    {
      type: "违法",
      lists: [
        { label: "户数", value: 28595, unit: "户" },
        { label: "宅基地", value: 26458, unit: "亩" },
        { label: "房屋", value: 57683745, unit: "m²" },
        { label: "人均宅基地", value: 24.36, unit: "m²" }
      ]
    }
  ];

  result[0].lists[0].value = randomNum(1, 100);
  result[0].lists[1].value = randomNum(1, 500);
  result[0].lists[2].value = randomNum(1, 1000);
  result[0].lists[3].value = randomNum(1, 300);

  result[1].lists[0].value = randomNum(1, 100);
  result[1].lists[1].value = randomNum(1, 500);
  result[1].lists[2].value = randomNum(1, 1000);
  result[1].lists[3].value = randomNum(1, 300);

  result[2].lists[0].value = randomNum(1, 100);
  result[2].lists[1].value = randomNum(1, 500);
  result[2].lists[2].value = randomNum(1, 1000);
  result[2].lists[3].value = randomNum(1, 300);

  result[3].lists[0].value = randomNum(1, 100);
  result[3].lists[1].value = randomNum(1, 500);
  result[3].lists[2].value = randomNum(1, 1000);
  result[3].lists[3].value = randomNum(1, 300);

  return result;
};
